<?php

function __autoload($class_name) {
        include 'class.' . strtolower($class_name) . '.php';
}


class AplikasiDao{
	
	public function getAplikasi(){
		$db=Database::getInstance();
        $con=$db->getConnection(1);

        $query="SELECT * FROM ref_aplikasi";

        $result=$con->prepare($query);
        $result->execute();

        if($result->rowCount()>=1){
            return $result->fetchAll();
        }

        return false;
	}


}

class Aplikasi{
	
	var $id;
	var $nama;
    var $deskripsi;

}


?>